package com.coolgor.coldot.dto.wechat.gzh;

import com.coolgor.coldot.entity.wechat.gzh.GZHMessageTemplate;
import com.coolgor.coldot.enums.wechat.gzh.GZHMessageTemplateOperationStateEnum;

import java.util.List;


public class GZHMessageTemplateExecution {

	// 结果状态 
	private int state;
	// 结果状态标识 
	private String stateInfo;
	// 执行结果的数量 
	private int count;
	// 操作的对象(增删改的时候用到)
	private GZHMessageTemplate gZHMessageTemplate;
	// 获取的结果列表(查询列表的时候使用)
	private List<GZHMessageTemplate> gZHMessageTemplateList;

	// 构造器
	public GZHMessageTemplateExecution() {}

	// 操作失败的时候使用的构造器
	public GZHMessageTemplateExecution(GZHMessageTemplateOperationStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}

	// 增删改 操作成功的时候使用的构造器
	public GZHMessageTemplateExecution(GZHMessageTemplateOperationStateEnum stateEnum, GZHMessageTemplate gZHMessageTemplate) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.gZHMessageTemplate = gZHMessageTemplate;
	}

	// 查询 操作成功的时候使用的构造器
	public GZHMessageTemplateExecution(GZHMessageTemplateOperationStateEnum stateEnum, List<GZHMessageTemplate> gZHMessageTemplateList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.gZHMessageTemplateList = gZHMessageTemplateList;
	}


	// 下面都是getter 和setter

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public GZHMessageTemplate getGZHMessageTemplate() {
		return gZHMessageTemplate;
	}

	public void setGZHMessageTemplate(GZHMessageTemplate gZHMessageTemplate) {
		this.gZHMessageTemplate = gZHMessageTemplate;
	}

	public List<GZHMessageTemplate> getGZHMessageTemplateList() {
		return gZHMessageTemplateList;
	}

	public void setGZHMessageTemplateList(List<GZHMessageTemplate> gZHMessageTemplateList) {
		this.gZHMessageTemplateList = gZHMessageTemplateList;
	}

}